package com.example.todolist.mapper;

import com.example.todolist.entity.Teaching;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TeachingMapper {
    List<Teaching> getAll();
    int updateQuestion(@Param("userId") Integer userId, @Param("deviceId") Integer deviceId, @Param("type") String type, @Param("question") String question);
    int updateAnswer(@Param("userId") Integer userId, @Param("deviceId") Integer deviceId, @Param("type") String type, @Param("answer") String answer);
    Teaching getAnswer(@Param("userId") Integer userId, @Param("deviceId") Integer deviceId, @Param("type") String type);
    int insert(Teaching teaching);
    int deleteAll();
} 